diff options
Diffstat (limited to 'app/api/files/[...path]/route.ts')
| -rw-r--r-- | app/api/files/[...path]/route.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/api/files/[...path]/route.ts b/app/api/files/[...path]/route.ts index 2b58ca43..3fb60347 100644 --- a/app/api/files/[...path]/route.ts +++ b/app/api/files/[...path]/route.ts @@ -92,6 +92,7 @@ export async function GET( if (process.env.NODE_ENV === 'production') { // ✅ 프로덕션: NAS 경로 사용 filePath = path.join(nasPath, requestedPath); + } else { // 개발: public 폴더 filePath = path.join(process.cwd(), 'public', requestedPath); |
